//
//  RefreshComponent.m
//  DeyiLife
//
//  Created by zxin on 15/7/3.
//  Copyright (c) 2015年 Deyi. All rights reserved.
//

#import "RefreshComponent.h"
#import "MJRefresh.h"

@implementation RefreshComponent

DEFINE_SINGLETON_IMPLEMENTATION(RefreshComponent)

- (NSMutableArray *)idleImages {
    if (_idleImages == nil) {
        _idleImages = [NSMutableArray array];
        for (NSUInteger i = 1; i <= 6; i++) {
            UIImage *image = [UIImage imageNamed:[NSString stringWithFormat:@"headrefresh%d", (int)i]];
            [_idleImages addObject:image];
        }
    }
    return _idleImages;
}

- (NSMutableArray *)refreshImages {
    if (_refreshImages == nil) {
        _refreshImages = [NSMutableArray array];
        for (NSUInteger i = 7; i <= 8; i++) {
            UIImage *image = [UIImage imageNamed:[NSString stringWithFormat:@"headrefresh%d", (int)i]];
            [_refreshImages addObject:image];
        }
    }
    return _refreshImages;
}

@end
